package com.openbravo.data.loader;

import com.openbravo.basic.BasicException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.io.UnsupportedEncodingException;

public class BatchSentenceResource extends BatchSentence
{
  private String m_sResScript;

  public BatchSentenceResource(Session paramSession, String paramString)
  {
    super(paramSession);
    this.m_sResScript = paramString;
  }

  protected Reader getReader()
    throws BasicException
  {
    InputStream localInputStream = BatchSentenceResource.class.getResourceAsStream(this.m_sResScript);
    if (localInputStream == null)
      throw new BasicException(LocalRes.getIntString("exception.nosentencesfile"));
    try
    {
      return new InputStreamReader(localInputStream, "UTF-8");
    }
    catch (UnsupportedEncodingException localUnsupportedEncodingException)
    {  throw new BasicException(LocalRes.getIntString("exception.nosentencesfile"), localUnsupportedEncodingException);

    }
    }
}

/* Location:           D:\PowerFulPOS-2.30.2\openbravopos.jar
 * Qualified Name:     com.openbravo.data.loader.BatchSentenceResource
 * JD-Core Version:    0.6.0
 */